package com.alan.sso.server.service;

import com.alan.sso.server.bean.AppConfig;
import com.alan.sso.server.bean.User;
import com.alan.sso.share.bean.SsoUser;

/**
 * @Auther: Alan liu
 * @Date: 2018/12/21 13:02
 * @Description:
 */
public interface ILoginServer {

    boolean checkTicket(String ticket);

    User getUserByUserName(String userName);

    String generateTicket(User user);

    SsoUser getSsoUserByTicket(String ticket);

    boolean logout(SsoUser ssoUser);

    AppConfig getAppConfig(String appName);
}
